<?php
//用来上传身份证

include_once("../../../config.php");

//$act == 'upload_img'


$prom["upfile"] = $_FILES["file"];
$prom["path"] = '../../../uploadfiles/leader/';
$prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
$img_url = upload_file($prom);

if($img_url['name']){
    $arr['status'] = 200;
    $arr['info'] = '上传成功';
    $arr['url'] = domain_leader_img().$img_url['name'];
    die(json_encode($arr)) ;
}
else{
    $arr['status'] = 501;
    $arr['info'] = '上传失败';
    $arr['url'] = '';
    die(json_encode($arr)) ;
}



?>